﻿@model MvcApplication2.Controllers.UserProfileViewModel

<section id="dev-section">
    <div class="page-header">
        Dev Side <small></small>
    </div>

    <div class="row well">
        <dl class="dl-horizontal">
            <dt><strong>User type tester - dev - both </strong></dt>
            <dt>Languages</dt>
            <dd>@Model.FormattedLanguages</dd>
            <dt>Tester - Exercise Completed</dt>
            <dd>@Model.OwnDevices</dd>
            <dt>Screencapture</dt>
            <dd></dd>
            <dt>Webcam</dt>
            <dd></dd>
        </dl>
    </div>

    @{        
        var grid1 = new WebGrid(source: Model.TesterReviews,
                               defaultSort: "Title",
                               rowsPerPage: 25);
        grid1.Pager(WebGridPagerModes.All);
    }
    <div class="row well ">
        @grid1.GetHtml(
            tableStyle: "table table-condensed",
            columns: grid1.Columns(
                //grid1.Column(columnName: "Title", format: (item) => Html.ActionLink((string)item.Title, "Details", "DeveloperExercise", new { id = item.ExerciseId }, null), canSort: true),
                         grid1.Column("VotingUsername", "By"),
                         grid1.Column("Rating", "Rating"),
                         grid1.Column("Message", "Comment"))
           )
    </div>
</section>
